<?php

namespace app\api\validate;

use think\Validate;

class Register extends Validate
{
    protected $rule = [
        'mobile'       => ['require'],
        'password'     => ['require'],
        'sms_code'     => ['require'],
        'sms_code_key' => ['require'],
    ];

    protected $message  =   [
        'mobile.require'       => '手机不能位空',
        'password.require'     => '密码不能为空',
        'sms_code.require'     => '验证码不能位空',
        'sms_code_key.require' => '验证码key不能位空',
    ];
}
